package com.ruoyi.merchant.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商家营销活动申请对象 merchant_marketing_applications
 * 
 * @author ruoyi
 * @date 2025-10-22
 */
public class MerchantMarketingApplications extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 申请ID */
    private String appId;

    /** 商家ID */
    @Excel(name = "商家ID")
    private String merchantId;

    /** 活动类型：1-满减，2-折扣，3-特价 */
    @Excel(name = "活动类型：1-满减，2-折扣，3-特价")
    private Long activityType;

    /** 规则配置JSON */
    @Excel(name = "规则配置JSON")
    private String payload;

    /** 区域ID */
    @Excel(name = "区域ID")
    private String regionId;

    /** 状态：0-待审，1-通过，2-驳回 */
    @Excel(name = "状态：0-待审，1-通过，2-驳回")
    private Long status;

    /** 审核人（平台） */
    @Excel(name = "审核人", readConverterExp = "平=台")
    private String reviewerId;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date reviewedAt;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 删除时间（软删除） */
    @Excel(name = "删除时间", readConverterExp = "软=删除")
    private Date deletedAt;

    /** 预留字段1 */
    @Excel(name = "预留字段1")
    private String externField1;

    /** 预留字段2 */
    @Excel(name = "预留字段2")
    private String externField2;

    public void setAppId(String appId) 
    {
        this.appId = appId;
    }

    public String getAppId() 
    {
        return appId;
    }

    public void setMerchantId(String merchantId) 
    {
        this.merchantId = merchantId;
    }

    public String getMerchantId() 
    {
        return merchantId;
    }

    public void setActivityType(Long activityType) 
    {
        this.activityType = activityType;
    }

    public Long getActivityType() 
    {
        return activityType;
    }

    public void setPayload(String payload) 
    {
        this.payload = payload;
    }

    public String getPayload() 
    {
        return payload;
    }

    public void setRegionId(String regionId) 
    {
        this.regionId = regionId;
    }

    public String getRegionId() 
    {
        return regionId;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setReviewerId(String reviewerId) 
    {
        this.reviewerId = reviewerId;
    }

    public String getReviewerId() 
    {
        return reviewerId;
    }

    public void setReviewedAt(Date reviewedAt) 
    {
        this.reviewedAt = reviewedAt;
    }

    public Date getReviewedAt() 
    {
        return reviewedAt;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    public void setDeletedAt(Date deletedAt) 
    {
        this.deletedAt = deletedAt;
    }

    public Date getDeletedAt() 
    {
        return deletedAt;
    }

    public void setExternField1(String externField1) 
    {
        this.externField1 = externField1;
    }

    public String getExternField1() 
    {
        return externField1;
    }

    public void setExternField2(String externField2) 
    {
        this.externField2 = externField2;
    }

    public String getExternField2() 
    {
        return externField2;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("appId", getAppId())
            .append("merchantId", getMerchantId())
            .append("activityType", getActivityType())
            .append("payload", getPayload())
            .append("regionId", getRegionId())
            .append("status", getStatus())
            .append("reviewerId", getReviewerId())
            .append("reviewedAt", getReviewedAt())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("deletedAt", getDeletedAt())
            .append("externField1", getExternField1())
            .append("externField2", getExternField2())
            .toString();
    }
}
